<div class="users view">
<h2><?php  echo __('User'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($user['User']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('User Id'); ?></dt>
		<dd>
			<?php echo h($user['User']['user_id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Password'); ?></dt>
		<dd>
			<?php echo h($user['User']['password']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($user['User']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Permission'); ?></dt>
		<dd>
			<?php echo h($user['User']['permission']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Start Date'); ?></dt>
		<dd>
			<?php echo h($user['User']['start_date']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('End Date'); ?></dt>
		<dd>
			<?php echo h($user['User']['end_date']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Dept1'); ?></dt>
		<dd>
			<?php echo h($user['User']['dept1']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Dept2'); ?></dt>
		<dd>
			<?php echo h($user['User']['dept2']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Dept3'); ?></dt>
		<dd>
			<?php echo h($user['User']['dept3']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Cert Of Appre'); ?></dt>
		<dd>
			<?php echo h($user['User']['cert_of_appre']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Contact'); ?></dt>
		<dd>
			<?php echo $this->Html->link($user['Contact']['name'], array('controller' => 'contacts', 'action' => 'view', $user['Contact']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

                		<li><?php echo $this->Html->link(__('Users'), array('controller' => 'Users','action' => 'index')); ?></li>
                		<li><?php echo $this->Html->link(__('Departments'), array('controller' => 'departments', 'action' => 'index')); ?> </li>
                		<li><?php echo $this->Html->link(__('Contacts'), array('controller' => 'contacts', 'action' => 'index')); ?> </li>
                		<li><?php echo $this->Html->link(__('Mail Lists'), array('controller' => 'mail_lists', 'action' => 'index')); ?> </li>
                		<li><?php echo $this->Html->link(__('Timesheets'), array('controller' => 'timesheets', 'action' => 'index')); ?> </li>
                	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Timesheets'); ?></h3>
	<?php if (!empty($user['Timesheet'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Time Date'); ?></th>
		<th><?php echo __('Start Time'); ?></th>
		<th><?php echo __('End Time'); ?></th>
		<th><?php echo __('Total No Hrs'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Timesheet'] as $timesheet): ?>
		<tr>
			<td><?php echo $timesheet['id']; ?></td>
			<td><?php echo $timesheet['user_id']; ?></td>
			<td><?php echo $timesheet['name']; ?></td>
			<td><?php echo $timesheet['time_date']; ?></td>
			<td><?php echo $timesheet['start_time']; ?></td>
			<td><?php echo $timesheet['end_time']; ?></td>
			<td><?php echo $timesheet['total_no_hrs']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'timesheets', 'action' => 'view', $timesheet['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'timesheets', 'action' => 'edit', $timesheet['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'timesheets', 'action' => 'delete', $timesheet['id']), null, __('Are you sure you want to delete # %s?', $timesheet['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Timesheet'), array('controller' => 'timesheets', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
